import java.util.Scanner;
public class TeacherTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Teacher s=new Teacher();
        try{
            System.out.println("请输入老师年龄：");
            s.setAge(in.nextInt());
            System.out.println("请输入老师姓名:");
            s.setName(in.next());
            System.out.println("请输入老师自我介绍：");
            s.setProduce(in.next());
            s.show();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
